<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the V2TimFriendshipListener constructor from Class V2TimFriendshipListener from the V2TimFriendshipListener library, for the Dart programming language.">
  <title>V2TimFriendshipListener constructor - V2TimFriendshipListener - V2TimFriendshipListener library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">tencent_cloud_chat_sdk</a></li>
    <li><a href="../../enum_V2TimFriendshipListener/enum_V2TimFriendshipListener-library.html">enum&#47;V2TimFriendshipListener.dart</a></li>
    <li><a href="../../enum_V2TimFriendshipListener/V2TimFriendshipListener-class.html">V2TimFriendshipListener</a></li>
    <li class="self-crumb">V2TimFriendshipListener constructor</li>
  </ol>
  <div class="self-name">V2TimFriendshipListener</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button" title="Toggle brightness">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        dark_mode
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        light_mode
      </span>
    </label>
  </div>
</header>
<main>

  <div
      id="dartdoc-main-content"
      class="main-content"
      data-above-sidebar="enum_V2TimFriendshipListener&#47;V2TimFriendshipListener-class-sidebar.html"
      data-below-sidebar="">
      <div>
<h1><span class="kind-constructor">V2TimFriendshipListener</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">V2TimFriendshipListener</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="-param-onFriendApplicationListAdded">{<span class="type-annotation"><a href="../../enum_callbacks/OnFriendApplicationListAddedCallback.html">OnFriendApplicationListAddedCallback</a>?</span> <span class="parameter-name">onFriendApplicationListAdded</span>, </span></li>
<li><span class="parameter" id="-param-onFriendApplicationListDeleted"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendApplicationListDeletedCallback.html">OnFriendApplicationListDeletedCallback</a>?</span> <span class="parameter-name">onFriendApplicationListDeleted</span>, </span></li>
<li><span class="parameter" id="-param-onFriendApplicationListRead"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendApplicationListReadCallback.html">OnFriendApplicationListReadCallback</a>?</span> <span class="parameter-name">onFriendApplicationListRead</span>, </span></li>
<li><span class="parameter" id="-param-onFriendListAdded"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendListAddedCallback.html">OnFriendListAddedCallback</a>?</span> <span class="parameter-name">onFriendListAdded</span>, </span></li>
<li><span class="parameter" id="-param-onFriendListDeleted"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendListDeletedCallback.html">OnFriendListDeletedCallback</a>?</span> <span class="parameter-name">onFriendListDeleted</span>, </span></li>
<li><span class="parameter" id="-param-onBlackListAdd"><span class="type-annotation"><a href="../../enum_callbacks/OnBlackListAddCallback.html">OnBlackListAddCallback</a>?</span> <span class="parameter-name">onBlackListAdd</span>, </span></li>
<li><span class="parameter" id="-param-onBlackListDeleted"><span class="type-annotation"><a href="../../enum_callbacks/OnBlackListDeletedCallback.html">OnBlackListDeletedCallback</a>?</span> <span class="parameter-name">onBlackListDeleted</span>, </span></li>
<li><span class="parameter" id="-param-onFriendInfoChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendInfoChangedCallback.html">OnFriendInfoChangedCallback</a>?</span> <span class="parameter-name">onFriendInfoChanged</span>, </span></li>
<li><span class="parameter" id="-param-onFriendGroupCreated"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendGroupCreatedCallback.html">OnFriendGroupCreatedCallback</a>?</span> <span class="parameter-name">onFriendGroupCreated</span>, </span></li>
<li><span class="parameter" id="-param-onFriendGroupDeleted"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendGroupDeletedCallback.html">OnFriendGroupDeletedCallback</a>?</span> <span class="parameter-name">onFriendGroupDeleted</span>, </span></li>
<li><span class="parameter" id="-param-onFriendGroupNameChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendGroupNameChangedCallback.html">OnFriendGroupNameChangedCallback</a>?</span> <span class="parameter-name">onFriendGroupNameChanged</span>, </span></li>
<li><span class="parameter" id="-param-onFriendsAddedToGroup"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendsAddedToGroupCallback.html">OnFriendsAddedToGroupCallback</a>?</span> <span class="parameter-name">onFriendsAddedToGroup</span>, </span></li>
<li><span class="parameter" id="-param-onFriendsDeletedFromGroup"><span class="type-annotation"><a href="../../enum_callbacks/OnFriendsDeletedFromGroupCallback.html">OnFriendsDeletedFromGroupCallback</a>?</span> <span class="parameter-name">onFriendsDeletedFromGroup</span>, </span></li>
<li><span class="parameter" id="-param-onOfficialAccountSubscribed"><span class="type-annotation"><a href="../../enum_callbacks/OnOfficialAccountSubscribed.html">OnOfficialAccountSubscribed</a>?</span> <span class="parameter-name">onOfficialAccountSubscribed</span>, </span></li>
<li><span class="parameter" id="-param-onOfficialAccountUnsubscribed"><span class="type-annotation"><a href="../../enum_callbacks/OnOfficialAccountUnsubscribed.html">OnOfficialAccountUnsubscribed</a>?</span> <span class="parameter-name">onOfficialAccountUnsubscribed</span>, </span></li>
<li><span class="parameter" id="-param-onOfficialAccountDeleted"><span class="type-annotation"><a href="../../enum_callbacks/OnOfficialAccountDeleted.html">OnOfficialAccountDeleted</a>?</span> <span class="parameter-name">onOfficialAccountDeleted</span>, </span></li>
<li><span class="parameter" id="-param-onOfficialAccountInfoChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnOfficialAccountInfoChanged.html">OnOfficialAccountInfoChanged</a>?</span> <span class="parameter-name">onOfficialAccountInfoChanged</span>, </span></li>
<li><span class="parameter" id="-param-onMyFollowingListChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnMyFollowingListChanged.html">OnMyFollowingListChanged</a>?</span> <span class="parameter-name">onMyFollowingListChanged</span>, </span></li>
<li><span class="parameter" id="-param-onMyFollowersListChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnMyFollowersListChanged.html">OnMyFollowersListChanged</a>?</span> <span class="parameter-name">onMyFollowersListChanged</span>, </span></li>
<li><span class="parameter" id="-param-onMutualFollowersListChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnMutualFollowersListChanged.html">OnMutualFollowersListChanged</a>?</span> <span class="parameter-name">onMutualFollowersListChanged</span>}</span></li>
</ol>)
    </section>

    


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">V2TimFriendshipListener({
  OnFriendApplicationListAddedCallback? onFriendApplicationListAdded,
  OnFriendApplicationListDeletedCallback? onFriendApplicationListDeleted,
  OnFriendApplicationListReadCallback? onFriendApplicationListRead,
  OnFriendListAddedCallback? onFriendListAdded,
  OnFriendListDeletedCallback? onFriendListDeleted,
  OnBlackListAddCallback? onBlackListAdd,
  OnBlackListDeletedCallback? onBlackListDeleted,
  OnFriendInfoChangedCallback? onFriendInfoChanged,
  OnFriendGroupCreatedCallback? onFriendGroupCreated,
  OnFriendGroupDeletedCallback? onFriendGroupDeleted,
  OnFriendGroupNameChangedCallback? onFriendGroupNameChanged,
  OnFriendsAddedToGroupCallback? onFriendsAddedToGroup,
  OnFriendsDeletedFromGroupCallback? onFriendsDeletedFromGroup,
  OnOfficialAccountSubscribed? onOfficialAccountSubscribed,
  OnOfficialAccountUnsubscribed? onOfficialAccountUnsubscribed,
  OnOfficialAccountDeleted? onOfficialAccountDeleted,
  OnOfficialAccountInfoChanged? onOfficialAccountInfoChanged,
  OnMyFollowingListChanged? onMyFollowingListChanged,
  OnMyFollowersListChanged? onMyFollowersListChanged,
  OnMutualFollowersListChanged? onMutualFollowersListChanged,
}) {
  if (onFriendApplicationListAdded != null) {
    this.onFriendApplicationListAdded = onFriendApplicationListAdded;
  }
  if (onFriendApplicationListDeleted != null) {
    this.onFriendApplicationListDeleted = onFriendApplicationListDeleted;
  }
  if (onFriendApplicationListRead != null) {
    this.onFriendApplicationListRead = onFriendApplicationListRead;
  }
  if (onFriendListAdded != null) {
    this.onFriendListAdded = onFriendListAdded;
  }
  if (onFriendListDeleted != null) {
    this.onFriendListDeleted = onFriendListDeleted;
  }
  if (onBlackListAdd != null) {
    this.onBlackListAdd = onBlackListAdd;
  }
  if (onBlackListDeleted != null) {
    this.onBlackListDeleted = onBlackListDeleted;
  }
  if (onFriendInfoChanged != null) {
    this.onFriendInfoChanged = onFriendInfoChanged;
  }

  if (onFriendGroupCreated != null) {
    this.onFriendGroupCreated = onFriendGroupCreated;
  }
  if (onFriendGroupDeleted != null) {
    this.onFriendGroupDeleted = onFriendGroupDeleted;
  }
  if (onFriendGroupNameChanged != null) {
    this.onFriendGroupNameChanged = onFriendGroupNameChanged;
  }
  if (onFriendsAddedToGroup != null) {
    this.onFriendsAddedToGroup = onFriendsAddedToGroup;
  }
  if (onFriendsDeletedFromGroup != null) {
    this.onFriendsDeletedFromGroup = onFriendsDeletedFromGroup;
  }

  if (onOfficialAccountSubscribed != null) {
    this.onOfficialAccountSubscribed = onOfficialAccountSubscribed;
  }
  if (onOfficialAccountUnsubscribed != null) {
    this.onOfficialAccountUnsubscribed = onOfficialAccountUnsubscribed;
  }
  if (onOfficialAccountDeleted != null) {
    this.onOfficialAccountDeleted = onOfficialAccountDeleted;
  }
  if (onOfficialAccountInfoChanged != null) {
    this.onOfficialAccountInfoChanged = onOfficialAccountInfoChanged;
  }
  if (onMyFollowingListChanged != null) {
    this.onMyFollowingListChanged = onMyFollowingListChanged;
  }
  if (onMyFollowersListChanged != null) {
    this.onMyFollowersListChanged = onMyFollowersListChanged;
  }
  if (onMutualFollowersListChanged != null) {
    this.onMutualFollowersListChanged = onMutualFollowersListChanged;
  }
}</code></pre>
</section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. -->
<header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
    <li><a href="../../index.html">tencent_cloud_chat_sdk</a></li>
    <li><a href="../../enum_V2TimFriendshipListener/enum_V2TimFriendshipListener-library.html">V2TimFriendshipListener</a></li>
    <li><a href="../../enum_V2TimFriendshipListener/V2TimFriendshipListener-class.html">V2TimFriendshipListener</a></li>
    <li class="self-crumb">V2TimFriendshipListener constructor</li>
</ol>


    <h5>V2TimFriendshipListener class</h5>
    <div id="dartdoc-sidebar-left-content"></div>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    tencent_cloud_chat_sdk
      8.5.6864-beta.7
  </span>

  
</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>



</body>

</html>

